// ---- 重置样式 ----
* {
  box-sizing: border-box;
}

body {
  color: #333;
  user-select: none;
  font: 14px/1.4 "Helvetica Neue", Helvetica, Arial, "Microsoft Yahei", "Hiragino Sans GB", "Heiti SC", "WenQuanYi Micro Hei", sans-serif;
}

ul,
h1,
h3,
h4,
p,
dl,
dd {
  padding: 0;
  margin: 0;
}

a {
  text-decoration: none;
  color: #333;
  outline: none;
}

i {
  font-style: normal;
}

input {
  outline: none;
  padding: 0;
  border: none;
}

img {
  max-width: 100%;
  max-height: 100%;
  vertical-align: middle;
}

ul {
  list-style: none;
}

// 占位提示颜色
input[type="text"],
input[type="password"],
input[type="search"]{
  &::placeholder{
    color: #ccc;
  }
}

// ---- 公用样式 ----
.xtx-wrapper {
  position: relative;
  background: #f5f5f5;
}
.container {
  width: 1240px;
  margin: 0 auto;
}
.fl {
  float: left;
}
.fr {
  float: right;
}
.clearfix:after {
  content: " ";
  display: block;
  visibility: hidden;
  height: 0;
  line-height: 0;
  clear: both;
}


// 一行省略
.ellipsis {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

// 两行省略
.ellipsis-2 {
  word-break: break-all;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

// 骨架屏动画
.loading(lazy-component);
.loading(load,70px,.2s);

// 保存按钮 300*60
.xtx-save-btn {
  width: 300px;
  font-size: 16px;
  color: #ffffff;
  text-align: center;
  line-height: 60px;
  height: 60px;
  background: #27ba9b;
  border-radius: 4px;
  display: inline-block;
}

// 通用（绿色|灰色）按钮  180*50
.xtx-common-btn {
  width: 180px;
  height: 50px;
  border-radius: 4px;
  text-align: center;
  line-height: 48px;
  font-size: 16px;
  color: #FFFFFF;
  display: inline-block;
  &[type="primary"] {
    background: @xtxColor;
  }
  &[type="info"] {
    background: #CCCCCC;
  }
}

// 个人中心-顶部标题
.xtx-center-head {
  line-height: 70px;
  margin: 0 25px;
  height: 70px;
  border-bottom: 1px solid #F5F5F5;
  .title {
    font-size: 16px;
    font-weight: normal;
  }
  .text {
    color: #666666;
    >span {
      padding: 0 2px;
      color: @xtxColor;
    }
  }
  .add {
    color: @xtxColor;
  }
}

// 个人中心-没有内容
.xtx-center-none {
  padding: 150px 0;
  text-align: center;
  img {
    width: 200px;
  }
  p {
    font-size: 20px;
    padding: 20px;
    color: #CCCCCC;
  }
}

.green {
  color: @xtxColor;
}
.red {
  color: @priceColor!important;
}